package com.woniuxy.creditsystem.systemmag.service.impl;

import com.woniuxy.creditsystem.common.bean.UserInfo;
import com.woniuxy.creditsystem.common.mapper.SystemMapper;
import com.woniuxy.creditsystem.systemmag.service.ISystemService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 用户的登录
 * @author hejie
 */
@Service
@Transactional(readOnly = true)
public class SystemServiceImpl implements ISystemService {

    @Resource
    private SystemMapper systemMapper;

    /**
     * 通过用户名登录--shiro（shiro未使用）
     * @author hejie
     * @param loginName
     * @return
     */
    @Override
    public UserInfo login(String loginName) {
        return systemMapper.loginByName(loginName);
    }
}
